Skip to content

Fix QASM3 experimental delay unit serialization#16317

Closed
kelvinvelasquez-SDE wants to merge 1 commit into
Qiskit:mainfrom
kelvinvelasquez-SDE:issue-16097-qasm3-delay-units
Closed

Fix QASM3 experimental delay unit serialization#16317
kelvinvelasquez-SDE wants to merge 1 commit into
Qiskit:mainfrom
kelvinvelasquez-SDE:issue-16097-qasm3-delay-units

Conversation

@kelvinvelasquez-SDE
Copy link
Copy Markdown

Summary

  • fix the DurationUnit::Millisecond serializer so experimental QASM3 exports emit ms instead of us
  • correct the picosecond-to-nanosecond conversion path used by qasm3.dumps_experimental
  • add a focused regression test covering ms and ps delay serialization

Test plan

  • Run python -m unittest test.python.qasm3.test_export.TestQASM3ExporterRust.test_delay_units test.python.qasm3.test_export.TestQASM3ExporterRust.test_delay_qpy_roundtrip test.python.qasm3.test_export.TestCircuitQASM3.test_delay_statement in an isolated validation worktree

fixes #16097

AI assistance disclosure: GPT-5.4 (Cursor)

Correct the exported millisecond suffix and picosecond-to-nanosecond conversion in the experimental QASM3 exporter so delay literals round-trip with the intended units.
@kelvinvelasquez-SDE kelvinvelasquez-SDE requested a review from a team as a code owner May 29, 2026 17:50
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 29, 2026

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@1ucian0
Copy link
Copy Markdown
Member

1ucian0 commented Jun 1, 2026

I'm closing this one in favor of #16114, which landed first. Feel free to take any issue from qisk.it/good-first-issues for other first-time-contributor-friendly issues . Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

qasm3.dumps_experimental gets some delay units wrong

3 participants